package OOPExercise;

import OOday04.Inter;

public class AnonInnerClassDemo {
    public static void main(String[] args) {
        Inter inter = new Inter(){};
        Inter inter1 = new Inter() {} ;
        InterInter iT = new InterInter(){
            public  void  show(){
                System.out.println("我是一个匿名内部类对象");
            }
        };
        InterInter iI = new InterInter() {//1.先创建一个无名的派生子类去实现InterInter接口
                                            //2.然后重写抽象方法show()
            @Override
            public void show() {}
        };
        iT.show();
    }

}
